<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<script type="text/javascript">
</script>
<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="market/rygz/admissionRecAction!list.action" method="post">
        <input type="hidden" name="pageSize" value="${rydList.pageSize}" />
        <input type="hidden" name="pageCurrent" value="${rydList.pageCurrent}" />        
        <div class="bjui-searchBar">
            <label>开始日期：</label>  
            <input type="text" name="ksrq" id="dialog_ksrq" value="<fmt:formatDate value='${admissionRec.ksrq}' pattern='yyyy-MM-dd'/>" data-toggle="datepicker" data-rule="required" size="16">&nbsp;&nbsp;
            <label>结束日期：</label>
        	<input type="text" name="jzrq" id="dialog_jzrq" value="<fmt:formatDate value='${admissionRec.jzrq}' pattern='yyyy-MM-dd'/>" data-toggle="datepicker" data-rule="required" size="16">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <button id="searchbtn" type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
	<table id="rydList" name="rydList" class="table table-bordered" data-selected-multi="false" data-width="100%"
	    data-toggle="tablefixed"  data-nowrap="true">
		<thead>
		<tr>
			<th>住院号</th>
			<th>患者姓名</th>
			<th>入院病区</th>
			<th>入院科室</th>
			<th>入院日期</th>
			<th>出院日期</th>
			<th>合作单位</th>
			<th>合作医生</th>
			<th>市场部小组</th>
			<th>市场部人员</th>
			<th>患者状态</th>
			<th>操作</th>
		</tr>
		</thead>
		<tbody>
		<c:forEach var="list" items="${rydList.rows}">
		<tr>
			<td>${list.blh}</td>
			<td>${list.hzxm}</td>
			<td>${list.bqmc}</td>
			<td>${list.ksmc}</td>
			<td><fmt:formatDate value='${list.ryrq}' pattern='yyyy-MM-dd'/></td>
			<td><fmt:formatDate value='${list.cyrq}' pattern='yyyy-MM-dd'/></td>
			<td>${list.compName}</td>
			<td>${list.docName}</td>
			<td>${list.groupName}</td>
			<td>${list.userName}</td>
			<td>${list.brzt}</td>
			<td>
				<a href="market/rygz/admissionRecAction!detail.action?id=${list.id}" 
				class="btn btn-default" data-toggle="dialog" data-width="700" data-height="430" 
				data-id="dialog-edit" data-mask="true" data-on-close="doc_dialog_close">编辑</a>
			</td>
		</tr>
		</c:forEach>
		</tbody>
	</table>
</div>
<div class="bjui-pageFooter">
	<div class="pages">
	    <span>每页 </span>
	    <div class="selectPagesize">
	        <select data-toggle="selectpicker" data-toggle-change="changepagesize">
	            <option value="10">10</option>
	            <option value="20">20</option>
	            <option value="30">30</option>
	            <option value="50">50</option>
	            <option value="80">80</option>
	        </select>
	    </div>
	</div>
    <div class="pagination-box pull-left" data-toggle="pagination" data-total="${rydList.total}" data-page-size="10" data-page-current="${rydList.pageCurrent}"></div>
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
    </ul>
</div>

